package com.zzh.bc.z;

import org.junit.Test;

import java.io.File;
import java.util.UUID;

public class TestDemo {

    @Test
    public void testInstanceOf() {
        Object va = 123;
        if (va instanceof Integer) {
            System.out.println("是Integer类型");
        }

    }

    @Test
    public void testGenUUID() {
        System.out.println(UUID.randomUUID().toString());
    }
    @Test
    public void testGenTime() {
        System.out.println(System.currentTimeMillis());
    }

    @Test
    public void rootDir(){
        //System.out.println(System.getProperty("user.dir"));
        File file = new File("test.txt");
        String path = file.getPath();
        System.out.println(path);
        System.out.println(file.getAbsolutePath());
    }


}
